<template>
  <div>
     <el-row>
      <el-button type="success" @click="SumDate">合计</el-button>
      <span style="margin-top: 5px">总价：</span>
      <el-tag type="info" style="width: 120px;height: 32px;font-size: large;">
        {{form.price  }}
      </el-tag>
     </el-row>
  </div>
</template>

<script setup lang="ts">
import { ref, reactive, onMounted} from 'vue'
import { ElMessage } from 'element-plus'
import axios from 'axios';
const form = reactive({
  price:''
})
const SumDate = () => {
  axios.get("http://localhost:9991/api/mes_tong").then(res=>{
    console.log(res.data)
    form.price = res.data
  })
}
</script>

<style scoped>

</style>